package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.SkillTraining;
import com.zhijian.medical.entity.vo.request.SkillTrainingSearchVo;
import com.zhijian.medical.entity.vo.response.SkillTrainingVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SkillTrainingMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SkillTraining record);

    int insertSelective(SkillTraining record);

    SkillTraining selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SkillTraining record);

    int updateByPrimaryKey(SkillTraining record);

    /**
     * 查询总数
     *
     * @param skillTrainingSearchVo
     * @return
     */
    int count(SkillTrainingSearchVo skillTrainingSearchVo);

    /**
     * 查询列表
     *
     * @param skillTrainingSearchVo
     * @return
     */
    List<SkillTrainingVo> selectList(SkillTrainingSearchVo skillTrainingSearchVo);

    /**
     * 查询单个
     *
     * @param skillTrainingSearchVo
     * @return
     */
    SkillTrainingVo selectOne(SkillTrainingSearchVo skillTrainingSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    SkillTrainingVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param skillTrainingSearchVo
     * @return
     */
    void deleteByCondition(SkillTrainingSearchVo skillTrainingSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<SkillTraining> entities);
}